package com.justnow.offer;

/**
 * @author justnow
 * Created on 2020-09-07
 * Description
 *
 */
public class LearnAdd {
    public static void main(String[] args) {
        String s0 = "abc123";
        String s1 = "abc";
        String s2 = "123";
        String s3 = "abc" + "123";
        String s4 = "abc" + s2;
        String s5 = s1 + s2;
        String s6 = "abc" + new String("123");
        System.out.println(s0 == s3); //true
        System.out.println(s0 == s4); //false
        System.out.println(s0 == s5); //false
        System.out.println(s0 == s5); //false
        System.out.println(s0 == s6); //false
    }
}
